package com.ulook.lookplanet.mapper;

import com.ulook.lookplanet.bean.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述：
 *
 * @author L1998
 * @date 2021/4/10
 */
@Mapper
@Repository
public interface PubMapper {

    void addArticle(TArticle article);

    void addArtPic(ArrayList<TArtPic> artPics);

    /**
     * 获取话题分组
     */
    List<TCommunity> getComList();

    /**
     * 获取话题
     */
    List<TTopic> getTopicByComId(String comId);

    /**
     * 保存选中的话题
     */
    void addArtTopic(TArtTopic artTopic);
}
